# CMake lowest version requirement
cmake_minimum_required(VERSION 3.5.1)

# project information
project(googlenet_imagenet_picture)

option(NPU_HOST "Flag for Atlas 200DK device" OFF)

# Compile options
add_compile_options(-std=c++17)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY  ".")
set(CMAKE_CXX_FLAGS_DEBUG "-fPIC -O0 -g -Wall")
set(CMAKE_CXX_FLAGS_RELEASE "-fPIC -O2 -Wall")

# Header path
include_directories( /usr/local/include )

# add host lib path
link_directories( /usr/local/lib )

add_executable(gnetapplet
	src/googlenet.cc
        src/main.cc)

add_library( googlenet SHARED
        src/googlenet.cc
)

target_link_libraries(gnetapplet
      airemote stdc++ opencv_core opencv_imgproc opencv_imgcodecs opencv_highgui 
      )

target_link_libraries(googlenet
      airemote stdc++ opencv_core opencv_imgproc opencv_imgcodecs opencv_highgui 
      )

install(TARGETS gnetapplet DESTINATION ${CMAKE_BINARY_DIR})
